﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string s = textBox1.Text;
            string[] sc = s.Split(',');
            int[] g = new int[2];
            int f = 2;
            if (sc.Length == f)
            {
                for (int i = 0; i < sc.Length; i++)
                {
                    g[i] = int.Parse(sc[i]);
                }
                if (g[0] > g[1]) { MessageBox.Show("Больше " +g[0]); }
                else { MessageBox.Show("Больше " +g[1]); }
            }
            else MessageBox.Show("Введите значения правильно");
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
